
//查询
import request from "@/utils/request.js";
export const getEquipmentList =(deviceId) => {

    return request({
        url: '/address/select',
        method: 'get',
        params:{
            deviceId
        }
    })
}

//设备添加
export const addEquipment = (equipment) => {
    return request({
        url: '/address/add',
        method: 'post',
        data:equipment,
    })
}

//修改设备
export const updateEquipment = (equipment) => {
    return request({
        url: '/address/update',
        method: 'post',
        data:equipment,
    })
}

//删除设备
export const deleteEquipment = (id) => {
    return request({
        url: '/address/delete',
        method: 'delete',
        params:{
            id
        }
    })
}

